package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.RegisterBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.RegisterIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.LoginListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class RegisterModel extends RetrofitBaseModel implements RegisterIface<RegisterBean> {
    private LoginService loginService;
    private Retrofit retrofit;
    public RegisterModel(){
        retrofit=getRetrofit();
        loginService=getLoginService();
    }
    @Override
    public void getRegisterList(String user_phone, String user_password, String user_name, String user_email, LoginListener<RegisterBean> loginListener) {
        Call<RegisterBean> call=loginService.getRegisterBean(user_phone,user_password,user_name,user_email);
        callenqueue(call,loginListener);
    }
}
